﻿const mongoose = require('mongoose');
const mongo = app => {
  mongoose.connect('mongodb://localhost:27017/dz',()=>{
      console.log(`数据库连接成功`);
      app.listen(8000);
  })
};
module.exports = mongo;